import BaseEntity from "@/framework/domain/BaseEntity";
import TargetTypeEnum from "@/feature/mms/infra/constants/TargetTypeEnum";

export default class NoticeMsgEntity extends BaseEntity {
  constructor(props) {
    super(props)
    if (this.targetType === TargetTypeEnum.ROLE.id) {
      this.targetRoleIdList = this.targetValue.split(',')
    } else if (this.targetType === TargetTypeEnum.PERSON.id && this.targetValue) {
      this.targetUserIdList = this.targetValue
    }
  }
}
